#include <client/fieldwidget.h>
#include <game/game.h>

void FieldWidget::tick(){
    repaint();
}

FieldWidget::FieldWidget(QWidget* parent)
    : QWidget(parent)
{
    setFixedSize(parent->width(),parent->height());
}

void FieldWidget::paintEvent(QPaintEvent*){
    QPainter painter(this);
    Game::Instance() -> tick(painter);
}
